html,
body,
#app {
  width: 100%;
  height: 100%;
  font-size: 16px;
  background-color: #fff !important;
  color: black;
  -webkit-text-size-adjust: 100%;
  box-sizing: border-box;
}

body {
  margin: auto !important;
  width: 100%;
}

* {
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

.fl {
  float: left;
}

.fr {
  float: right;
}

.clearfix:after {
  clear: both;
  content: '';
  display: block;
  width: 0;
  height: 0;
  visibility: hidden;
}


.ellipsis {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

::-webkit-input-placeholder {
  color: #878d99;
}

:-moz-placeholder {
  color: #878d99;
}

::-moz-placeholder {
  color: #878d99;
}

:-ms-input-placeholder {
  color: #878d99;
}

/* 剩余滚动条样式 */

::-webkit-scrollbar-track-piece {
  width: 2px;
  background-color: rgba(255, 255, 255, 1) !important;
}

.font-size12 {
    font-size: 12px;
}

:root {
  --bar-height: 0px;
  --nav-height: 0px;
  --top-height: 0px;
  --content-height: calc(100vh - var(--top-height));
}

.font-size13 {
    font-size: 13px;
}

.font-size14 {
    font-size: 14px;
}

.font-size15 {
    font-size: 15px;
}

.font-size17 {
    font-size: 17px;
}

.font-size19 {
    font-size: 19px;
}

.font-size12,
.font-size13,
.font-size14,
.font-size15,
.font-size17,
.font-size19 {
    font-family: PingFang SC;
    font-weight: 400;
    color: #333333;
}

.common-dialog {
    .van-dialog__header {
        padding: 18px 0 0;
        font-weight: bold;
        color: #333;
    }

    .van-dialog__content {
        padding: 14px 18px;

        .message-content {
            color: #333;
        }
        .van-dialog__message {
            //text-align: left;
            padding: 0;

            .message-title {
                text-align: center;
                font-size: 16px;
                color: #333;
                margin-bottom: 12px;
            }

            .img-wrap {
                padding: 10px 20px;
                display: flex;

                img {
                    width: 100%;
                    height: auto;
                }
            }
        }
    }

    &.single-button {
        .van-hairline--top::after {
            border-top-width: 0;
        }

        .van-dialog__footer {
            padding: 0 18px 18px;
        }

        .van-dialog__confirm,
        .van-dialog__cancel {
            flex: none;
            background-color: #118A84;
            color: #fff;
            margin: 0 auto;
            height: 30px;
            line-height: 30px;
            border-radius: 6px;
            font-size: 13px;
        }
    }

    //&.horizontal-buttons {
    //  //padding: 18px 18px 0;
    //  //.van-dialog__cancel, .van-dialog__confirm {
    //  //  height: 40px;
    //  //  font-size: 14px;
    //  //}
    //  .van-dialog__confirm {
    //    font-weight: bold;
    //  }
    //}
    &.horizontal-buttons {

        .van-dialog__cancel,
        .van-dialog__confirm,
        .van-dialog__cancel:active,
        .van-dialog__confirm:active {
            height: 40px;
            font-size: 14px;
            color: #118A84;
        }

        .van-dialog__confirm {
            font-weight: bold;
        }
    }

    &.vertical-buttons {
        .van-hairline--top::after {
            border-top-width: 0;
        }

        .van-dialog__footer {
            flex-direction: column;
            padding: 0 18px 5px;
        }

        //.van-dialog__footer {
        //}
        .van-dialog__cancel {
            flex: none;
            background-color: #118A84;
            color: #fff;
            margin: 0 auto;
            height: 30px;
            line-height: 30px;
            border-radius: 6px;
            font-size: 13px;
        }

        .van-dialog__confirm {
            font-size: 13px;
            height: 30px;
            line-height: 30px;
            margin: 3px auto 0;
            color: #118A84;
        }

        //padding: 18px 18px 0;
        //.van-dialog__cancel,
        //.van-dialog__confirm,
        //.van-dialog__cancel:active,
        //.van-dialog__confirm:active {
        //  height: 40px;
        //  font-size: 14px;
        //  color: #118A84;
        //}
    }
}

// 暂无数据时显示
.no-have {
    width: 100%;
    min-height: 100vh; // 机型屏幕总高
    max-height: 100vh; // 机型屏幕总高
    display: flex;
    justify-content: center;
    align-items: center;
    // 主轴竖向排列
    flex-direction: column;

    >img {
        width: 140px;
        height: 72px;
    }

    .explain {
        margin-top: 30px;
        font-size: 14px;
        font-family: PingFang SC;
        font-weight: bold;
        color: #333;
    }
}
.van-action-sheet__content {
    .vnp-header .vnp-btn-finish {
        color: #118a84 !important;
    }
    .vnp-input-box li.active > span {
        border-bottom:1px solid #118a84 !important;
        color: #118a84 !important;
    }
}

.container {
  width: 100%;
  height: 100vh;
  background: url("../assets/images/bg.png") no-repeat center;
  background-size: 100% 100%;
  overflow: hidden;
}

.back-btn {
  width: 34px;
  height: 34px;
  background: url("../assets/images/common/back.png") no-repeat center;
  background-size: cover;
  margin: 40px 0 20px 40px;
}

.scene-title {
  font-size: 18px;
  text-align: center;
  margin: 10px 0 20px;
  color: #81fbfe;
}

.scene-image {
  padding: 0 10%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  img {
    display: block;
    width: 100%;
    height: auto;
  }
  .robot {
    position: absolute;
    z-index: 2;
    width: 30px;
    height: 50px;
    //bottom: 36%;
    //left: 10%;
    bottom: 33%;
    left: 14%;
    //bottom: 30%;
    //left: 18%;
    background-image: url("../assets/images/sence/airport/robot-default.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
  }
}

@-webkit-keyframes shake1 {
  10% {
    transform: rotate(15deg);
  }
  20% {
    transform: rotate(-10deg);
  }
  30% {
    transform: rotate(5deg);
  }
  40% {
    transform: rotate(-5deg);
  }
  50%,
  100% {
    transform: rotate(0deg);
  }
}

@-webkit-keyframes shake2 {
  0%,
  50% {
    transform: rotate(0deg);
  }
  60% {
    transform: rotate(15deg);
  }
  70% {
    transform: rotate(-10deg);
  }
  80% {
    transform: rotate(5deg);
  }
  90% {
    transform: rotate(-5deg);
  }
}
.chip {
  position: absolute;
  bottom: 8%;
  width: 100%;
  display: flex;
  justify-content: space-around;
  .chip-item {
    width: 90px;
    height: 90px;
    &:nth-child(1) {
      animation: shake1 2s .5s linear infinite;
      //animation-delay: 1s;
    }
    &:nth-child(2) {
      animation: shake2 2s .5s linear infinite;
      //animation-delay: 2s;
    }
    img {
      display: block;
      width: 100%;
      height: auto;
    }
  }
}

.chip-tips {
  position: absolute;
  bottom: 3%;
  width: 100%;
  left: 0;
  right: 0;
  text-align: center;
  color: #333;
  font-size: 16px;
}
.run-tip {
  text-align: center;
  font-weight: bold;
  margin-top: 20px;
  &.error {
    color: rgb(231, 62, 64);
  }
  &.success {
    color: #20e8ea;
  }
}

.run-success {
  position: absolute;
  bottom: 15%;
  width: 100%;
  display: flex;
  justify-content: space-around;
  .img-box {
    img {
      display: block;
      width: 100%;
      height: auto;
    }
  }
  .left {
    display: flex;
    align-items: center;
    .arrow {
      width: 20px;
      margin-right: 5px;
    }
    .temp {
      width: 30px;
      position: relative;
      img {
        position: relative;
        z-index: 1;
      }

      /* 定义动画 */
      @keyframes tempUp {
        0% {
          height: 10%;
          top: 60%;
        }
        100% {
          height: 40%;
          top: 30%;
        }
      }
      .temp-up-box {
        position: absolute;
        z-index: 0;
        width: 8px;
        //height: 60%;
        //top: 10%;
        height: 40%;
        top: 30%;
        //border-radius: 10px 10px 0 0;
        background-color: #ccc;
        margin-left: 50%;
        transform: translateX(-50%);
        display: flex;
        animation-name: tempUp;
        animation-duration: 2s;
        animation-delay: 0ms;
        animation-iteration-count: 1;
        //animation-iteration-count: 1;
        animation-direction: normal;
        //animation-timing-function: step-end;
        animation-timing-function: linear;
        //animation-timing-function: cubic-bezier(1, 1, 1, 1);
        animation-fill-mode: none;
        //animation-play-state: paused;
        //animation-fill-mode: forwards;
        .aa, .bb {
          width: 50%;
          height: 100%;
        }
        .aa {
          background-color: #f62f3c;
        }
        .bb {
          background-color: #de1125;
        }
      }
    }
  }
  /* 定义动画 */
  @keyframes lineStep {
    0% {
      transform: translate(-50%, 0);
    }
    100% {
      transform: translate(0, 0); /* 斜线路径 */
    }
  }
  .right {
    //flex: 1;
    display: flex;
    align-items: center;
    //width: 100%;
    .chart-box {
      //flex: 1;
      .chart {
        position: relative;
        width: 150px;
        height: 60px;
        display: grid;
        //background: url("../assets/images/common/chart-bg.png") no-repeat center;
        border: 2px solid #00aef5;
        //background-size: contain;
        background-color: #04204b;
        //#92dcd9
        //&::before {
        //  //content: '';
        //  //position: absolute;
        //  //left: 0;
        //  //top: 0;
        //  //width: 200px;
        //  //height: 80px;
        //  ////border: solid 1px red;
        //  ///* background-image: linear-gradient(to bottom,transparent 9px,black 1px) ;
        //  //background-size: 100% 10px;
        //  //background-repeat: repeat; */
        //  //background-image: linear-gradient(to right, transparent 19px, #92dcd9 1px) ;
        //  //background-size: 20px 100%;
        //  //background-repeat: repeat;
        //}
        &::after{
          content: '';
          position: absolute;
          left: 0;
          top: 0;
          width: 200px;
          height: 80px;
          background-image: linear-gradient(to bottom,transparent 9px,#2e5875 1px),linear-gradient(to right,transparent 24px,#2e5875 1px) ;
          background-size: 25px 10px;
          background-repeat: repeat;
        }


        border-radius: 10px;
        //.chart-bg {
        //  position: absolute;
        //  z-index: 1;
        //}
        overflow: hidden;
        .chart-line {
          position: absolute;
          z-index: 2;
          //animation: bling 0s ease-in-out forwards;
          //animation-iteration-count: infinite;
          animation-name: lineStep;
          animation-duration: 40s;
          animation-delay: 0ms;
          animation-iteration-count: infinite;
          //animation-iteration-count: 1;
          animation-direction: normal;
          //animation-timing-function: step-end;
          animation-timing-function: linear;
          //animation-timing-function: cubic-bezier(1, 1, 1, 1);
          animation-fill-mode: none;
          //animation-play-state: paused;
          //animation-fill-mode: forwards;

          img {
            width: auto;
            height: 55px;
            margin-top: 5px;
          }
        }
      }
      p {
        font-size: 14px;
        text-align: center;
        font-weight: bold;
        margin-top: 10px;
        color: #20e8ea;
      }
    }
    .right-arrow {
      width: 20px;
      margin-left: 10px;
    }
  }
}
p.success-tip {
  padding: 10px 24px;
  border-radius: 14px;
  border: 4px solid #b9fa6c;
  color: #166049;
  font-size: 16px;
  font-weight: bold;
  display: inline-block;
  margin: 0 auto;
}
p.error-tip {
  padding: 10px 24px;
  border-radius: 14px;
  border: 4px solid #e84343;
  color: #e84343;
  font-size: 16px;
  font-weight: bold;
  display: inline-block;
  margin: 0 auto;
}
@keyframes rightRuffle {
  0% {
    transform: skew(0) rotate(0);
  }
  50% {
    transform: skew(30deg) rotate(0deg);
  }
  100% {
    transform: skew(0) rotate(0);
  }
}
.leaf {
  //transform: scale(0.7) scaleX(-1);
  animation: rightRuffle 2s infinite ;
}
